﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Chat_Model
{
    /// <summary>
    /// 用户聊天记录（代码块消息）
    ///</summary>
    [SugarTable("lar_talk_records_code")]
    public class LarTalkRecordsCode
    {
        /// <summary>
        /// 代码块ID 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public string Id { get; set; }
        /// <summary>
        /// 消息记录ID 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="record_id"    )]
         public string RecordId { get; set; }
        /// <summary>
        /// 用户ID 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="user_id"    )]
         public string UserId { get; set; }
        /// <summary>
        /// 代码片段类型(如：php,java,python) 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="code_lang"    )]
         public string CodeLang { get; set; }
        /// <summary>
        /// 代码片段内容 
        ///</summary>
         [SugarColumn(ColumnName="code"    )]
         public string Code { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
         [SugarColumn(ColumnName="created_at"    )]
         public DateTime? CreatedAt { get; set; }
    }
}
